<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<form:form commandName="memberCommand" action="updateMyInfo.do" method="post">
<form:hidden path="m_id" value="${userId }"/>
<table align="center" border="0" cellpadding="0" cellspacing="1" width="600">
<colgroup>
<col width="30%">
<col width="70%">
</colgroup>
	<tr>
		<td>아이디</td>
		<td>${userId }</td>
	</tr>
	<tr>
		<td>이름</td>
		<td>
			<form:input path="m_name" value="${member.m_name}"/>
			<form:errors path="m_name"/>
		</td>
	</tr>
	<tr>
		<td>비밀번호</td>
		<td>
			<input type="password" name="m_passwd" />
			<form:errors path="m_passwd" />
		</td>
	</tr>
	<tr>
		<td>비밀번호확인</td>
		<td>
			<input type="password" name="passwd2" />
			<form:errors element="div"/>
		</td>
	</tr>
	<tr>
		<td>주소</td>
		<td>
			<form:input path="m_address" value="${member.m_address}"/>
			<form:errors path="m_address"/>
		</td>
	</tr>
	<tr>
		<td>이메일</td>
		<td>
			<form:input path="m_email" value="${member.m_email}"/>
			<form:errors path="m_email"/>
		</td>
	</tr>
	<tr>
		<td>전화번호</td>
		<td>
			<form:input path="m_phone" value="${member.m_phone}"/>
			<form:errors path="m_phone"/>
		</td>
	</tr>
	<tr height="100">
		<td colspan="2">
		<div style="margin-left: 50pt">
			<input type="submit" value="확인"/>
			<input type="button" value="메인화면" onclick="location.href='shopMain.do'"/></td>
		</div>
	</tr>
</table>
</form:form> 

<%-- 
<form:form commandName="memberCommand" action="updateMyInfo.do" method="post">

<form:hidden path="m_id" value="${userId }"/>
아이디 : ${userId }<br/>

이름<form:input path="m_name" value="${member.m_name}"/>
	<form:errors path="m_name"/><br/>

비밀번호 : <input type="password" name="m_passwd" />
	<form:errors path="m_passwd" />
	<br/>
	
비밀번호 확인 : <input type="password" name="passwd2" />
<form:errors element="div"/>
	<br/>


주소<form:input path="m_address" value="${member.m_address}"/>
	<form:errors path="m_address"/><br/>
이메일<form:input path="m_email" value="${member.m_email}"/>
	<form:errors path="m_email"/><br/>
전화번호<form:input path="m_phone" value="${member.m_phone}"/>
	<form:errors path="m_phone"/><br/>
  
<br/><br/>
<input type="submit" value="확인" onclick="location.href='updateMyInfo.do'"/>
<input type="button" value="메인화면" onclick="location.href='shopMain.do'"/>
</form:form>  
 --%>